﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<PowerGroup> list = v.data("list") as List<PowerGroup>; %>

<%if (list.Count > 0){ %>
<% foreach (PowerGroup row in list) { %>
<div class="infolist" onselectstart="return false;" title="#{memberinfo.Name}-<%=row.powername %>" <%if (bllPowerGroupService.powercheck("system", "groupedit", modelpowergroup)) { %><%if(row.delclass==0){ %>ondblClick="javascript:parent.onbotton('<%=row.powername %>_{grouplist_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.PowerGroupController().PowerGroupEdit, row.Id) %>?copytype=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'group<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %><%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="10%">
                <%if(row.delclass==0){ %>
				<input type="checkbox" name="selectinfoid" value="<%=row.Id %>">
				<%} %>
			</td>
			<td width="10%"><%=row.Id %></td>
			<td width="60%"><%=row.powername %></td>
			<td width="10%" id="infotype">
				<table>
					<tr>
						<td><%if(row.delclass==0){ %><span class="select_ok" title="_{grouplist_audit_ok}"></span><%}else{%><span class="select_no" title="_{grouplist_audit_no}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="10%" id="infotype">
				<%if (bllPowerGroupService.powercheck("system", "groupedit", modelpowergroup)) { %>
				<table>
					<tr>
						<td>
						<%if(row.delclass==0){ %>
							<a class="setedit" onclick="javascript:parent.onbotton('<%=row.powername %>_{grouplist_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.PowerGroupController().PowerGroupEdit, row.Id) %>?copytype=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'group<%=row.Id %>',self.frameElement.getAttribute('name'));" id="group<%=row.Id %>" href="#body" title="_{grouplist_edit_title}" hidefocus="true">_{setedit_botton}</a>
						<%}else{%>
                        _{grouplist_sys_mess}
						<%} %>
						</td>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">_{list_nothing_title}</td>
	</tr>
</table>
</div>
<%} %>